package com.cetccst.securitysuite.worker;

import android.content.Context;

import androidx.annotation.NonNull;
import androidx.work.Worker;
import androidx.work.WorkerParameters;

public class UploadDataWorker extends Worker {
    public UploadDataWorker(@NonNull Context context, @NonNull WorkerParameters workerParams) {
        super(context, workerParams);
    }

    @NonNull
    @Override
    public Result doWork() {
        try {
            //上传信息收集数据
            updateBasicData();
            //表示任务执行成功
            return Result.success();
        } catch (Exception e) {
            //表示任务执行失败
            return Result.failure();
        }
    }

    private void updateBasicData() {

    }
}
